﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmBuscaInsumo.aspx.cs" Inherits="Carozos.Web.frmBuscaInsumo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" Text="BÚSQUEDA DE INSUMOS"></asp:Label>
    <br />
    <br />
    <table>
        <tr>
            <th>
                <asp:Label ID="Label2" runat="server" Text="Nombre a Buscar :"></asp:Label>
            </th>
            <th>
                <asp:TextBox ID="txtNombre" runat="server" Width="190px"></asp:TextBox>
            </th>
            <th>
                <asp:ImageButton ID="btnBuscar" runat="server" ImageUrl="~/Img/search.png"  />
            </th>
        </tr>
        <tr>
        <th colspan="3">
            <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" 
                BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                CellPadding="3" DataKeyNames="codigo" 
                onselectedindexchanged="gv_SelectedIndexChanged" 
                DataSourceID="InsumoDataSource">
                <Columns>
                    <asp:CommandField ButtonType="Image" SelectImageUrl="~/Img/camera_test.png" 
                        SelectText="Seleccionar" ShowSelectButton="True" />
                    <asp:BoundField DataField="nombre" HeaderText="Nombre" 
                        SortExpression="nombre" />
                    <asp:BoundField DataField="marca" HeaderText="Marca" SortExpression="marca" />
                    <asp:BoundField DataField="cantidad" HeaderText="Cantidad" 
                        SortExpression="cantidad" />
                    <asp:BoundField DataField="comentario" HeaderText="Comentario" 
                        SortExpression="comentario" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#007DBB" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#00547E" />
            </asp:GridView>
            <asp:ObjectDataSource ID="InsumoDataSource" runat="server" 
                SelectMethod="getInsumosByNombre" TypeName="Carozos.BC.InsumoBC">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txtNombre" DefaultValue="" Name="pNombre" 
                        PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </th>
        </tr>
    </table>
   
</asp:Content>
